package com.ghck.server.utils.comparator;

import java.util.Comparator;

import com.ghck.server.model.PatientEvent;

public class PatientEventComparator implements Comparator<PatientEvent> {
	
	public static PatientEventComparator instance = new PatientEventComparator();

	@Override
	public int compare(PatientEvent o1, PatientEvent o2) {
		if(o1!=null && o1.getActionTime()!=null && o2!=null && o2.getActionTime()!=null){
			return o1.getActionTime().compareTo(o2.getActionTime());
		}
		return 0;
	}

}
